package com.leonzhangxf.gateway.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author leonzhangxf
 */
@FeignClient(name = "service-user", path = "/user")
@Component
public interface UserApi {

    @GetMapping("/info/{token}")
    String userInfo(@PathVariable("token") String token);
}
